package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.User;
import com.googlecode.flealancemarket.service.commands.CheckLoginUser;
import com.googlecode.flealancemarket.service.facades.UserFacade;

public class CheckLoginUserImpl implements CheckLoginUser {

    private User user;
    private UserFacade facade;

    public User execute() {
        return facade.loginUser(user);
    }

    public User getUser() {
        return user;
    }

    public void setUser(User u) {
        user = u;
    }

    public UserFacade getFacade(){
        return facade;
    }

    public void setFacade(UserFacade f){
        facade = f;
    }

}
